const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  assetsDir: 'static',
  productionSourceMap: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://8.141.22.161:8002',
        changeOrigin: true,
        secure: false,
        logLevel: 'debug'
      }
    },
    port: 8080,
    open: true
  }
})
